OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
5 * Copyright (C) 2009 Adam Barth. All rights reserved. | 5 * Copyright (C) 2009 Adam Barth. All rights reserved. |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * | 10 * |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
313 if (lockBackForwardList) | 313 if (lockBackForwardList) |
314 request.setClientRedirect(ClientRedirect); | 314 request.setClientRedirect(ClientRedirect); |
315 m_frame->loader().load(request); | 315 m_frame->loader().load(request); |
316 return; | 316 return; |
317 } | 317 } |
318 } | 318 } |
319 | 319 |
320 schedule(adoptPtr(new ScheduledLocationChange(originDocument, url, referrer, lockBackForwardList))); | 320 schedule(adoptPtr(new ScheduledLocationChange(originDocument, url, referrer, lockBackForwardList))); |
321 } | 321 } |
322 | 322 |
323 void NavigationScheduler::schedulePageBlock(Document* originDocument, const Refe rrer& referrer) | |
324 { | |
325 ASSERT(m_frame->page()); | |
326 schedule(adoptPtr(new ScheduledLocationChange(originDocument, "data:,Blocked ", referrer, false))); | |
Nate Chapin
2014/05/30 23:04:36
I'm a little hazy on the unique origin rules, will
| |
327 } | |
328 | |
323 void NavigationScheduler::scheduleFormSubmission(PassRefPtr<FormSubmission> subm ission) | 329 void NavigationScheduler::scheduleFormSubmission(PassRefPtr<FormSubmission> subm ission) |
324 { | 330 { |
325 ASSERT(m_frame->page()); | 331 ASSERT(m_frame->page()); |
326 schedule(adoptPtr(new ScheduledFormSubmission(submission, mustLockBackForwar dList(m_frame)))); | 332 schedule(adoptPtr(new ScheduledFormSubmission(submission, mustLockBackForwar dList(m_frame)))); |
327 } | 333 } |
328 | 334 |
329 void NavigationScheduler::scheduleRefresh() | 335 void NavigationScheduler::scheduleRefresh() |
330 { | 336 { |
331 if (!shouldScheduleNavigation()) | 337 if (!shouldScheduleNavigation()) |
332 return; | 338 return; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
407 | 413 |
408 void NavigationScheduler::cancel() | 414 void NavigationScheduler::cancel() |
409 { | 415 { |
410 if (m_timer.isActive()) | 416 if (m_timer.isActive()) |
411 InspectorInstrumentation::frameClearedScheduledNavigation(m_frame); | 417 InspectorInstrumentation::frameClearedScheduledNavigation(m_frame); |
412 m_timer.stop(); | 418 m_timer.stop(); |
413 m_redirect.clear(); | 419 m_redirect.clear(); |
414 } | 420 } |
415 | 421 |
416 } // namespace WebCore | 422 } // namespace WebCore |
OLD | NEW |